<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

//include_once("model/Model.php");  

class App_Controller_Foo{
  
  
  public $model;   
  
     public function __construct()  
     {  
          //$this->model = new Model();  
     }   
  
     public function invoke()  
     {  
       
       $this->model = "ahdgcjhdgcjhdgcd";
         
         
          if (!isset($_GET['book']))  
          {  
              //echo 'invoke3';
               // no special book is requested, we'll show a list of all available books  
               //$books = $this->model->getBookList();  
               include 'view/foo.phtml';
          } 
          else 
          { 
               
          //echo 'invoke4';// show the requested book 
               //$book = $this->model->getBook($_GET['book']); 
               include 'view/foo.phtml';  
          }  
     }  

  
  
}
?>
